<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>Insert title here</title>
	<link rel="stylesheet" href="__PUBLIC__/js/jquery-upload/css/jquery.fileupload.css" />
	<link rel="stylesheet" href="__PUBLIC__/js/jquery-upload/css/jquery.fileupload-ui.css" />
 	<script type="text/javascript" src="__PUBLIC__/js/jquery-upload/js/vendor/jquery.ui.widget.js"></script>
 	<script type="text/javascript" src="__PUBLIC__/js/jquery-upload/js/jquery.fileupload.js"></script>
 	<script type="text/javascript" src="__PUBLIC__/js/jquery-upload/js/jquery.fileupload-ui.js"></script>
 	<script type="text/javascript" src="__PUBLIC__/js/jquery-upload/js/jquery.iframe-transport.js"></script>
 	<script type="text/javascript" src="__PUBLIC__/js/jquery-upload/js/jquery.fileupload-process.js"></script>
</head>
<body>
	<div class="modal-dialog" role="document" style="width:800px;">
	    <div class="modal-content">
	        <div class="modal-header">
	            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
	            <h4 class="modal-title" id="exampleModalLabel">楼宇详情</h4>
	        </div>
	        <form class="form-horizontal" style="padding:4%;height:500px;overflow-y:auto;" id="houseForm">
				<ul id="myTab" class="nav nav-tabs" style="margin-bottom: 10px;">
					<li class="active">
						<a href="#baseTab" data-toggle="tab">
							基础信息
						</a>
					</li>
					<li><a href="#propTab" data-toggle="tab">产权信息</a></li>
				</ul>
				<div class="tab-content">
					<div class="tab-pane fade in active" id="baseTab">
						<div class="form-group">
							<label class="control-label col-sm-2">所属商圈:</label>
							<div class="col-sm-4">
								<select class="form-control" name="trade_id">
									<option value="" <if condition="$house['trade_id'] eq ''">selected</if>>请选择</option>
									<foreach name="tradeList" item="trade">
										<option value="{$trade.id}" <if condition="$house['trade_id'] eq $trade['id']">selected</if>>{$trade.name}</option>
									</foreach>
								</select>
							</div>
							<label class="control-label col-sm-2">楼宇名称:</label>
							<div class="col-sm-4">
								<input type="text" class="form-control" name="name" value="{$house.name}" placeholder="请输入楼宇名称">
							</div>
						</div>
						<div class="form-group">
							<label class="control-label col-sm-2">所属街道:</label>
							<div class="col-sm-4">
								<select class="form-control" name="org_id">
									<foreach name="orgList.rows" item="org">
										<if condition="$org.pid eq 0">
											<optgroup label="{$org.name}"></optgroup>
											<else/>
											<option value="{$org.id}" <if condition="$house['org_id'] eq $org['id']">selected</if>>{$org.name}</option>
										</if>
									</foreach>
								</select>
							</div>
							<label class="control-label col-sm-2">用地性质:</label>
							<div class="col-sm-4">
								<select class="form-control" name="use_type">
									<option value="1" <if condition="$house.use_type eq 1">selected</if>>商业用地</option>
									<option value="2" <if condition="$house.use_type eq 2">selected</if>>住宅用地</option>
								</select>
							</div>
						</div>
						<div class="form-group">
							<label class="control-label col-sm-2">注册类型:</label>
							<div class="col-sm-4">
								<select class="form-control" name="enroll_type">
									<option value="1" <if condition="$house.enroll_type eq 1">selected</if>>国有企业</option>
									<option value="2" <if condition="$house.enroll_type eq 2">selected</if>>私营企业</option>
								</select>
							</div>
							<label class="control-label col-sm-2">注册资金:</label>
							<div class="col-sm-4">
								<div class="input-group">
									<input type="text" class="form-control" name="enroll_capital" value="{$house.enroll_capital}">
									<div class="input-group-addon">&yen;</div>
								</div>
							</div>
						</div>
						<div class="form-group">
							<label class="control-label col-sm-2">楼层总数:</label>
							<div class="col-sm-4">
								<div class="input-group">
									<input type="text" class="form-control" name="floor" value="{$house.floor}">
									<div class="input-group-addon">层</div>
								</div>
							</div>
							<label class="control-label col-sm-2">楼宇编码:</label>
							<div class="col-sm-4">
								<input type="text" class="form-control" name="code" value="{$house.code}">
							</div>
						</div>
						<div class="form-group">
							<label class="control-label col-sm-2">建筑面积:</label>
							<div class="col-sm-4">
								<div class="input-group">
									<input type="text" class="form-control" name="area" value="{$house.area}" placeholder="请输入建筑面积">
									<div class="input-group-addon">M&sup2;</div>
								</div>
							</div>
							<label class="control-label col-sm-2">使用面积:</label>
							<div class="col-sm-4">
								<div class="input-group">
									<input type="text" class="form-control" name="area_use" value="{$house.area_use}" placeholder="请输入使用面积">
									<div class="input-group-addon">M&sup2;</div>
								</div>
							</div>
						</div>
						<!-- div class="form-group">
                            <label class="control-label col-sm-2">商务面积:</label>
                            <div class="col-sm-4">
                                <div class="input-group">
                                    <input type="text" class="form-control" name="available_area" value="{$house.available_area}">
                                    <div class="input-group-addon">M&sup2;</div>
                                </div>
                            </div>
                            <label class="control-label col-sm-2">空置面积:</label>
                            <div class="col-sm-4">
                                <div class="input-group">
                                    <input type="text" class="form-control" name="free_area" value="{$house.free_area}">
                                    <div class="input-group-addon">M&sup2;</div>
                                </div>
                            </div>
                        </div-->
						<div class="form-group">
							<label class="control-label col-sm-2">标准层高:</label>
							<div class="col-sm-4">
								<div class="input-group">
									<input type="text" class="form-control" name="floor_height" value="{$house.floor_height}" placeholder="请输入标准层高">
									<div class="input-group-addon">M</div>
								</div>
							</div>
							<label class="control-label col-sm-2">是否有效:</label>
							<div class="col-sm-4">
								<select class="form-control" name="status">
									<option value="1" <if condition="$house.status eq 1">selected</if>>有效</option>
									<option value="0" <if condition="$house.status eq 0">selected</if>>无效</option>
								</select>
							</div>
						</div>
						<div class="form-group">
							<label class="control-label col-sm-2">得房率:</label>
							<div class="col-sm-4">
								<div class="input-group">
									<input type="text" class="form-control" name="construction_ratio" value="{$house.construction_ratio}" placeholder="请输入得房率">
									<div class="input-group-addon">%</div>
								</div>
							</div>
							<label class="control-label col-sm-2">电梯数量:</label>
							<div class="col-sm-4">
								<input type="text" class="form-control" name="lifts" value="{$house.lifts}" placeholder="请输入电梯数量">
							</div>
						</div>
						<div class="form-group">
							<label class="control-label col-sm-2">开发商:</label>
							<div class="col-sm-4">
								<input type="text" class="form-control" name="developers" value="{$house.developers}" placeholder="请输入开发商名称">
							</div>
							<label class="control-label col-sm-2">物业公司:</label>
							<div class="col-sm-4">
								<input type="text" class="form-control" name="property" value="{$house.property}" placeholder="请输入物业公司">
							</div>
						</div>
						<div class="form-group">
							<label class="control-label col-sm-2">联系人:</label>
							<div class="col-sm-4">
								<input type="text" class="form-control" name="contacts" value="{$house.contacts}" placeholder="请输入联系人名称">
							</div>
							<label class="control-label col-sm-2">联系电话:</label>
							<div class="col-sm-4">
								<input type="text" class="form-control" name="contact_phone" value="{$house.contact_phone}" placeholder="请输入联系电话">
							</div>
						</div>
						<div class="form-group">
							<label class="control-label col-sm-2">停车位:</label>
							<div class="col-sm-4">
								<input type="text" class="form-control" name="parking_num" value="{$house.parking_num}" placeholder="请输入楼宇停车位">
							</div>
							<label class="control-label col-sm-2">邮政编码:</label>
							<div class="col-sm-4">
								<input type="text" class="form-control" name="zip_code" value="{$house.zip_code}" placeholder="请输入邮政编码">
							</div>
						</div>
						<div class="form-group">
							<label class="control-label col-sm-2">坐落地址:</label>
							<div class="col-sm-10">
								<input type="text" class="form-control" name="position" value="{$house.position}">
							</div>
						</div>
						<div class="form-group">
							<label class="control-label col-sm-2">经纬度:</label>
							<div class="col-sm-10">
								<input type="text" class="form-control" name="longitude" value="<if condition="$house.longitude gt 0">{$house.longitude|number_format=7}</if>" style="float:left;width:35%;">
								<input type="text" class="form-control" name="latitude" value="<if condition="$house.latitude gt 0">{$house.latitude|number_format=7}</if>" style="float:left;width:35%;margin-left: 20px;">
							</div>
						</div>
						<div class="form-group">
							<label class="control-label col-sm-2">楼宇介绍:</label>
							<div class="col-sm-10">
								<textarea class="form-control" rows="5" name="description">{$house.description}</textarea>
							</div>
						</div>
						<!--<div class="form-group">
                            <label class="control-label col-sm-2">公交信息:</label>
                            <div class="col-sm-10">
                                <textarea class="form-control" rows="3" name="bus_info">{$house.bus_info}</textarea>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-sm-2">地铁信息:</label>
                            <div class="col-sm-10">
                                <textarea class="form-control" rows="3" name="metro_info">{$house.metro_info}</textarea>
                            </div>
                        </div>-->
						<div class="form-group">
							<label class="control-label col-sm-2">交通信息:</label>
							<div class="col-sm-10">
								<textarea class="form-control" rows="3" name="metro_station_info">{$house.metro_station_info}</textarea>
							</div>
						</div>
						<div class="form-group">
							<label class="control-label col-sm-2">图片:</label>
							<div class="col-sm-10">
								<!-- The container for the uploaded files -->
								<div id="files" class="files">
									<foreach name="house.attachment" item="attache">
										<img src="__ROOT__{$attache.attachment}" style="width:60px;height:60px;margin:10px;">
									</foreach>
								</div>
							</div>
						</div>
					</div>
					<include file="prop_detail" />
				</div>
	        </form>
	        <div class="modal-footer">
	            <button type="button" data-dismiss="modal" class="btn btn-default">关闭</button>
	        </div>
	    </div>
	</div>
	<script type="text/javascript">
		
	</script>
</body>
</html>